#include "Precompile.h"
#include "InputFactory.h"
#include "DirectInputSystem.h"
#include "WinMessagesInputSystem.h"

namespace Input{
	boost::shared_ptr<InputSystem> InputFactory::createInputSystem(InputSystemType type){
		switch(type){
		case IST_DINPUT:
			return boost::shared_ptr<InputSystem>(new DirectInputSystem);
		case IST_WINMSG:
			return boost::shared_ptr<InputSystem>(new WinMessagesInputSystem);
		}
		return boost::shared_ptr<InputSystem>();
	}
}